<template>
  <el-dialog
    v-model="dialogVisible"
    custom-class="dialog-result"
    width="480px"
    :show-close="false"
    :close-on-press-escape="false"
    :close-on-click-modal="false"
  >
    <div class="text-align-c pay-result">
      <img v-if="successPic" class="mar-t-30 mar-b-19" :src="successPic" alt="">
      <p class="font-20 font-color">你已成功付款，</p>
      <p class="font-20 font-color">我们会尽快为你处理...</p>
      <div class="mar-t-30 pad-t-3"><el-button class="default-btn">去逛逛</el-button></div>
      <div><el-button type="text" class="default-btn-t">查看详情</el-button></div>
    </div>
  </el-dialog>
</template>

<script lang="ts">
  import {
    defineComponent,
    ref,
    onMounted
  } from 'vue'
  import successPic from '@/assets/images/icon_success_b.png'
  export default defineComponent({
    name: 'DialogDeliver',
    setup() {
      const dialogVisible = ref(<boolean>false)
      onMounted(() => {
      })

      const handleDialogClose = () => {
        dialogVisible.value = false
      }
      const handleDialogOpen = () => {
        dialogVisible.value = true
      }

      return {
        successPic,
        dialogVisible,
        handleDialogClose,
        handleDialogOpen
      }
    }
  })
</script>

<style lang="scss" scoped>
  $darkBlue: #182245;
  $detailWidth: 100%;
  $recommendGoodsWidth: 190px;
  .express-pic{
    width: 100%;
  }
  .pay-result{
    img{
      display: inline-block;
    }
    p{
      margin: 0;
      padding: 0;
      line-height: 1.8;
    }
  }
  ::v-deep(.default-btn){
    background: $darkBlue;
    color: #fff;
    border-radius: 0;
    border: $darkBlue 1px solid;
    padding: 0px 20px;
    width: 105px;
  }
  ::v-deep(.default-btn-t){
    color: $darkBlue;
  }
</style>
